execute store result storage vs:system temp.GT.value int 1 run data get entity @s item.components."minecraft:custom_data".guardTowerData.consume_power
function vs:system/game_ctrol/guard_tower/power/value/remove with storage vs:system temp.GT
data remove storage vs:system temp.GT